package com.jacky.androidutils.database.dao.base;

import android.content.Context;
import android.database.DatabaseErrorHandler;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;


/**
 * Created by jacky on 2016/10/10.
 * sounbus app-developer
 */

public class DAOHelper extends SQLiteOpenHelper {
    protected String DB_NAME;
    protected int CURRENT_VERSION;

    public String getDB_NAME() {
        return DB_NAME;
    }

    public void setDB_NAME(String DB_NAME) {
        this.DB_NAME = DB_NAME;
    }

    public int getCURRENT_VERSION() {
        return CURRENT_VERSION;
    }

    public void setCURRENT_VERSION(int CURRENT_VERSION) {
        this.CURRENT_VERSION = CURRENT_VERSION;
    }

    public DAOHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
        this.DB_NAME = name;
        this.CURRENT_VERSION = version;
    }

    public DAOHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version, DatabaseErrorHandler errorHandler) {
        super(context, name, factory, version, errorHandler);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {

    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
